package com.feng.sharedingjdbc.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author yinglong.zhang
 * @description
 * @date 2024-1-29 13:56
 */

@Data
@Entity
@Table(name = "t_order")
@TableName(value = "t_order")
public class OrderEntity {

    @Id
    @TableId(type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 地址
     */
    private String address;

    /**
     * 金额
     */
    private BigDecimal amount;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Long userId;
}